# $Id: PKGBUILD 183435 2013-04-21 22:11:28Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>

pkgname=libqmi
pkgver=1.2.0
pkgrel=2
pkgdesc="QMI modem protocol helper library"
arch=(i686 x86_64)
url="http://cgit.freedesktop.org/libqmi"
license=(GPL2)
depends=(glib2 bash)
makedepends=(gtk-doc python)
options=('!libtool')
source=($url/snapshot/$pkgname-$pkgver.tar.xz)
sha256sums=('4c0fe5fedd33dffd60d845c571243a2f25834019c159377d8df2c7cf5ff3a515')

build() {
  cd $pkgname-$pkgver
  ./autogen.sh --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --disable-static
  make
}

check() {
  cd $pkgname-$pkgver
  make check
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
